Improve detection of input device source type
authorThomas Jaeger <ThJaeger@gmail.com>
Mon, 28 Sep 2009 05:39:42 +0000 (01:39 -0400)
committerAlexander Larsson <alexl@redhat.com>
Mon, 28 Sep 2009 14:08:42 +0000 (16:08 +0200)
commit7d196b3939e1bbf5eddc5da0980e30c2f38c9cdd
treead7333b5413f61228528940053f1a6dc5e720640
parente81501ebea4cceffce2890519807b0c243fec0a3
Improve detection of input device source type

This detection code is not 100% reliable, but it should fare much better
than the current code, which just compares the device name to a fixed
set of strings.  Many applications depend on erasers being recognized
reliably, so we start by checking for a device name containing the
substring 'eraser'.

Signed-off-by: Thomas Jaeger <ThJaeger@gmail.com>
gdk/x11/gdkinput-x11.c